﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace  KFGame
{
    
public class KFGameData  
{
   
    //投币数量
    private int coins=0;
 
    public int GetCoins(){
          return coins;
    }
    public int AddCoins(int i){ 
            coins+=i; 
            if(coins>99)coins=99;
            return coins;
    }
    public int removeCoins(int i){ 
              coins-=i; 
              if(coins<0)coins=0;
            return coins;
    }
    
    
}

}
